package com.wt.springboot.controller;

import com.wt.springboot.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.context.annotation.RequestScope;

/**
 * Created with IDEA
 * Describe:
 * Author:TianJi
 * Date:2018/11/20
 * Time:19:17
 */
@Controller
public class AsyncController {
    @Autowired
    private AsyncService asyncService;

    @GetMapping("/sayHello")
    @ResponseBody
    public String hello(){
        asyncService.hello();
        return "success";
    }
}
